# -*- coding: utf-8 -*-
# created by Alberthch - 陈航  2021/7/15 21:54
# Description:
import numpy as np
a = [2, 5, 8, 6, 7]
b = [2, 5, 5, 6, 1]
print("a:",a)
print("b:",b)

# print(a-b)  # TypeError: unsupported operand type(s) for -: 'list' and 'list'
print("a+b:",a+b)  # [2, 5, 8, 6, 7, 2, 5, 5, 6, 1]，拼接操作，与数值操作无关
# print(a+1)  # TypeError: can only concatenate list (not "int") to list
print("="*20)

print(type(np.array(a)))
print(type(list(np.array(a))))
print("np.array(a):",np.array(a))
print("np.array(b):",np.array(b))
print("np.array(a)+np.array(b):",np.array(a)+np.array(b))
print("np.array(a)-np.array(b):",np.array(a)-np.array(b))

